-- GENERATED SPELL FOR [Blackwood Warrior] --


function spell0_2168(pUnit, Event) --@Battle Stance,Self--
pUnit:FullCastSpellOnTarget(7165,pUnit)
pUnit:RegisterEvent('Sorts_2168', 631, 1)
end

function spell1_2168(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_2168', 10349, 1)
end

function Sorts_2168(pUnit, Event)
local choix_sorts_2168 = math.random(0, 1)
if choix_sorts_2168 == 0 then
pUnit:RegisterEvent('spell0_2168', 1, 1)
end
if choix_sorts_2168 == 1 then
pUnit:RegisterEvent('spell1_2168', 1, 1)
end
end

function mob2168_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2168', math.random(1500, 3000), 1)
end

function mob2168_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2168_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2168_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2168, 1, 'mob2168_Action')
RegisterUnitEvent(2168, 2, 'mob2168_Leave')
RegisterUnitEvent(2168, 3, 'mob2168_Kill')
RegisterUnitEvent(2168, 4, 'mob2168_Die')
